<%--
The Community Project
Copyright Team1 Productions

Joshua Amick
Stephen Cunningham
Thema Davis
Tomika Dawson
Lucie DeCristifaro

This JSP is an implementation of the user interface for the Community Project.  Several
tag libraries and custom libraries are used.

All Rights reserved.
--%>

<%@ page %>
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>

<%-- jstl taglibs --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- struts taglibs --%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%-- custom taglib by Josh --%>
<%@ taglib prefix="custom" tagdir="/WEB-INF/tags/custom" %>

<c:set var="basePath">
	${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}
</c:set>
<c:set var="servletPath">
	${pageContext.request.servletPath}
</c:set>

<base href="${basePath}/" />

<%-- page content --%>
<custom:frame noWrap="true">
	<html:form action="/SaveUserRequest" method="post" enctype="multipart/form-data">
		<div id="styleErrors">
			<c:if test="${not empty ERRORS}">
				${ERRORS}
			</c:if>
		</div>
		Username&nbsp;<html:text property="username"/><br/>
		Password&nbsp;<html:password property="password1"/><br/>
		Password&nbsp;<html:password property="password2"/><br/>
		Email&nbsp;<html:text property="email"/><br/>
		<html:submit value="&nbsp;Submit&nbsp;"/>
		<br/><br/><html:link action="/Home.do">Click here to login.</html:link>
	</html:form>
</custom:frame>